package cn.bonoon.core;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.batatasframework.rawdata.RawdataDefinition;

import cn.bonoon.entities.RawdataExportEntity;
import cn.bonoon.kernel.support.IOperator;
import cn.bonoon.kernel.support.services.SearchService;

public interface RawdataExportService extends SearchService<RawdataExportEntity>{
	/**
	 * 查出导出记录并使导出次数+1
	 * @param id
	 * @return
	 */
	RawdataExportEntity getByIdAndAdd(Long id);
//	
//	List<? extends AbstractSubsidyRawdataItem> getByExportId(String title,Long subject,Integer status);
//
//	List<? extends AbstractSubsidyRawdataItem> getList(String title,String[] ids);
//	
//	List<ImportItem> getImportItems(Long id,String title);
//	
//	List<ImportItem> getExportItems(Long id,String title);
//	
//	List<DoubtReturnsItem> getDoubtReturnsItems(String title,Long ownerId);
//	
//	void addExportEntity(LogonUser user,String title,String[] ids,String filename);
//	
//	List<ImportItem> getDoubtReturnsExport(String title,String[] ids,Long ownerId);
//	
//	void deletedByCouOwnerId(String ownerid, PlaceEntity placeEntity,IOperator user)throws Exception;
	
	List<Object> getItems(IOperator user, RawdataExportEntity entity, RawdataDefinition def);
	
	List<Object> getItemsByStartEnd(IOperator user, RawdataExportEntity entity, RawdataDefinition def,int start,int end);
	
	void excelExport(RawdataExportEntity rawdataExport,HttpServletResponse response,
			HttpServletRequest request,RawdataDefinition def);
	
	RawdataExportEntity addExportEntity(IOperator user, String[] ids,RawdataDefinition def);

	
}
